#include<iostream>
using namespace std;
int main()
{
    char b[100];
    int num[3];
    char ch[10][5]={"ling","yi","er","san","si","wu","liu","qi","ba","jiu"};
    int sum=0,i;
    scanf("%s",b);
    for(i=0;b[i]!='\0';i++)
    {
       sum+=b[i]-'0';     
    }
    i=0;
    while(sum!=0)
    {
        num[i]=sum%10;
        sum=sum/10;
        i++;
    }
    i--;
    while(i>0)
    {
        printf("%s",ch[num[i]]);
        printf(" ");
        i--;
    }
    printf("%s",ch[num[i]]);
    return 0;
}